const soonsDao = require('../dao/soonsDao');
//查询
module.exports.find = async function (searchObj, page) {
   return await soonsDao.find(searchObj, page);
};
//查所有
module.exports.findAll = async function () {
   return await soonsDao.findAll();
}

//增加
module.exports.insert = async function (films) {
   return await soonsDao.insert(films);
};
//删除
module.exports.remove = async function (id) {
   return await soonsDao.remove(id);
};
//查询id
module.exports.findById = async function (id) {
   return await soonsDao.findById(id);
};
module.exports.update = async function (id, films) {
   return await soonsDao.update(id, films);
};